package com.shycloud.mido.member.api.feign;

import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.member.api.config.FeignConfig;
import com.shycloud.mido.member.api.entity.StockSaleOrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 机构模块 feign 调用
 *
 * @author nianhua.jiang
 * @date 2020/8/6 14:20
 */
@FeignClient(value = "shycloud-organ-biz", configuration = FeignConfig.class)
public interface MasterFeignService {

	@GetMapping("/master/v2/checkMemberMaster")
	R checkMemberMaster(@RequestParam("memberId") String memberId);

	@GetMapping("/master/v2/checkMemberMasterFast")
	String checkMemberMasterFast(@RequestParam("memberId") String memberId);

	@PostMapping("/master/v2/addActivationH5")
	R addActivationH5(@RequestBody Map<String, String> requestMap);

	@GetMapping("/master/v2/getMasterEndTime")
	String getMsterEndTime(@RequestParam("memberId") String memberId);

	@GetMapping("/master/v2/activateByDuration")
	String activateByDuration(@RequestParam("memberId") String memberId, @RequestParam("duration") Integer duration);

}